package com.rw.advice;

import org.springframework.aop.ThrowsAdvice;

public class MyThrowAdvice implements ThrowsAdvice {
    //异常通知的方法名是固定的afterThrowing
    public void afterThrowing(Exception e){
        System.out.println("异常通知"+e.getMessage());

    }

}
